<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
	<ui:composition template="template/template.xhtml">
		<ui:define  name="page-title" >#{messages.novoCentro}</ui:define >
		<ui:define  name="center">
			<h:outputText styleClass="title" value="#{messages.novoCentro}"/>
        	<p:messages id="messages" autoUpdate="true" showSummary="true"/> 
           	
			<h:panelGrid columns="2">  
	
	 			<h:outputLabel value="#{messages.nome}" for="nome"/>
	 			<p:inputText id="nome" value="#{centroController.novoCentro.nome}" required="true"/>


				<h:outputLabel for="morada" value="#{messages.morada}" /> 
          			<p:inputText id="morada" value="#{centroController.novoCentro.morada}" required="true"/>
	
				
		 		<h:column/>
     					<h:column>
     						<p:commandButton value="#{messages.voltar}" action="centroDepositos" immediate="true" process="@this"  ajax="false"/> 
     						<p:commandButton value="#{messages.guardar}" action="#{centroController.saveNewCentroAction}" ajax="false"/> 
     					</h:column>
     		
			</h:panelGrid>
		</ui:define >
	</ui:composition>
	
</html>